package com.bdqn.ordersystem.service.impl;

import com.bdqn.ordersystem.dao.CenterDao;
import com.bdqn.ordersystem.pojo.Center;
import com.bdqn.ordersystem.service.CenterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("centerService")
public class CenterServiceImpl implements CenterService {

    @Resource
    private CenterDao centerDao;
    @Override
    public List<Center> listAll() {
        return centerDao.select();
    }

    @Override
    public List<Center> listByAreaId(Integer areaId) {
        return centerDao.select(areaId);
    }
}
